package com.pattern.factory;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class AmericanCoffee implements Coffee{

    private String name="Meishi";

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public void addMilk() {
        System.out.println(this.name+"加牛奶");
    }
}
